<?php

namespace App\Models;

use App\Common\Traits\HasAgentRevenues;

class AgentSdkBalanceOperation extends Base
{
    use HasAgentRevenues;

    /**
     * 渠道: 接龙
     */
    const CHANNEL_SOLITAIRE = 1;

    /**
     * 收支类型: 转入
     */
    const REVENUES_TYPE_INCOME = 1;

    /**
     * 收支类型: 转出
     */
    const REVENUES_TYPE_EXPENDITURE = 2;

    public function agent()
    {
        return $this->belongsTo(Agent::class, 'agent_id');
    }
}
